package com.lvmama.common.enums;

/** 
* @ClassName: CommonStringType 
* @Description:
* @author Administrator
* @date 2017年5月3日 上午10:06:34  
*/
public enum CommonStringType {

    NONE("", ""),
    ALLS("", "全部"),
    /*设备平台*/
    IPHONE("IPHONE", "iPhone(IPHONE)"),
    ANDROID("ANDROID", "安卓(ANDROID)"),

    /*推送渠道*/
    MIPUSH("MIPUSH", "小米推送(MIPUSH)"),
    GPUSH("GPUSH", "个推(GPUSH)"),
    HPUSH("HPUSH", "华为(HPUSH)"),


    /*推送类型*/
    ALL("ALL", "推送所有(ALL)"),
    PROVINCE("PROVINCE", "按照省份推送(PROVINCE)"),
    UDID("UDID", "唯一识别码(UDID)"),
    DEVICE_TOKEN("DEVICE_TOKEN", "DEVICE_TOKEN|android 就是IMEI(DEVICE_TOKEN)"),
    BATCH_MEMBER("BATCH_MEMBER", "会员导入(BATCH_MEMBER)"),
    ACCURATE("ACCURATE", "精准推送(ACCURATE)"),
    TICKET_TRAVLE("TICKET_TRAVLE", "门票出行(TICKET_TRAVLE)"),
    TICKET_COMMENT_TYPE("TICKET_COMMENT", "门票点评(TICKET_COMMENT)"),

    /*推送类别*/
    NORMAL("NORMAL", "省份推送(NORMAL)"),
    PAY_ORDER("PAY_ORDER", "订单催支付(PAY_ORDER)"),
    ACCURATE_ORDER("ACCURATE_ORDER", "订单行为推送(ACCURATE_ORDER)"),
    ACCURATE_DETAIL("ACCURATE_DETAIL", "详情行为推送(ACCURATE_DETAIL)"),
    COUPON("COUPON", "优惠券推送(COUPON)"),
    TICKET_TRAVEL("TICKET_TRAVEL", "门票出行推送(TICKET_TRAVEL)"),
    TICKET_COMMENT("TICKET_COMMENT", "点评推送(TICKET_COMMENT)"),
    CHANGED("CHANGED", "新到城市推送(CHANGED)"),
    TRAVEL_ASST("TRAVEL_ASST", "行程助手(TRAVEL_ASST)"),
    MEMBER_MODEL("MEMBER_MODEL", "会员模型(MEMBER_MODEL)"),
    ASSOCITAION("ASSOCITAION", "关联推送(ASSOCITAION)"),
    PERSONALISE("PERSONALISE", "个性化推送(PERSONALISE)"),


    /*推荐统计页面目录*/
    APP_INDEX("APP_INDX","APP首页"),
    THEME_INDEX("THEME_INDEX","主题游首页"),
    ASSOCIATE("ASSOCIATE","关联推荐页"),
    PRODUCT_DETAIL("PRODUCT_DETAIL","产品详情页"),
    PAY_SUCCESS("PAY_SUCCESS","支付完成页"),

    /*推荐统计板块*/
    GUESS_YOUR_THEME("GUESS_YOUR_THEME","猜你会喜欢的主题游"),
    BUY_TOGETHER("BUY_TOGETHER","经常一起购买"),

    /*渠道*/
    APP("APP", "APP"),
    WAP("WAP", "WAP"),

    /*在线状态*/
    ON("ON", "在线"),
    OFF("OFF", "离线"),

    /*H5页面监控pageCode*/
    RESORT_HOTEL("dj", "度假酒店"),
    AIR_TICKETS("fj", "飞机票"),
    TRAIN_TICKET("hc", "火车票"),
    TICKETS("mp", "门票"),
    M_STANDING_FRONT_PAGE("sy", "m站首页"),
    TRAVEL_AROUND("zb", "周边游"),
    DOMESTIC_TRAVEL("gn", "国内游"),
    OUTBOUND_TRAVEL("cj", "出境游"),


    /*运营商*/
    CM("CM", "中国移动"),
    CU("CU", "中国联通"),
    CT("CT", "中国电信"),
    NONE1("NONE", "其他"),

    
    /*网络类型*/
    TWO_G("2G","2G"),
    THREE_G("3G","3G"),
    FOUR_G("4G","4G"),
    WIFI("WIFI","WIFI"),
    NONE2("NONE","NONE"),

    /*请求方式*/
    POST("1", "POST"),
    GET("2", "GET"),
    PATCH("3", "PATCH"),
    PUT("4", "PUT"),
    DELETE("5", "DELETE"),
    OTHER("6", "其他"),

    /*渠道版本*/
    H5("0","H5"),
    IOS("1","IOS"),
    Android("2","ANDROID"),
    NONE3("NONE", "其他"),
    
    /*接口异常*/
    NEGATIVE_1("-1", "服务器异常"),
    NEGATIVE_2("-2", "无产品或者产品不可售"),
    NEGATIVE_3("-3", "跳转到登录界面"),
    NEGATIVE_5("-5", "验证参数失败"),
    NEGATIVE_7("-7", "无权限"),
    NEGATIVE_101("-101", "图片验证码失败"),
    POSITIVE_2("2", "警告,客户端对该错误码做特殊弹窗处理"),
    POSITIVE_3("3", "跳转到极验页面"),
    
    /*异常类型*/
    INTERFACE_EXCEPTION("1", "接口异常"),
    HTTP_EXCEPTION("2", "HTTP异常"),
	
	
   /* 搜索类型*/
    CC("cc", "补全点击"),
    SBH("sbh", "搜索框热词"),
    SH("sh", "搜索热词"),
    DI("di", "直接输入"),
    OT("ot", "其他"),
    

    /*酒加景   酒店星级*/
	hotelStar1("109", "其他/其他"),
	hotelStar2("106107", "二星/简约型"),
	hotelStar3("104105", "三星/舒适型"),
	hotelStar4("102103", "四星/品质型"),
	hotelStar5("100101", "五星/豪华型"),
	
	/*酒店价格范围*/
	hotelPrice1("1","￥150以下"),
	hotelPrice2("2","￥151-￥300"),
	hotelPrice3("3","￥301-￥450"),
	hotelPrice4("4","￥451-￥600"),
	hotelPrice5("5","￥601-￥1000"),
	hotelPrice6("6","￥1001以上"),

	/*  线路价格范围*/  
	routePrice1("1","100元以下"),
	routePrice2("2","101-500元"),
	routePrice3("3","501-1000元"),
	routePrice4("4","1001-2000元"),
	routePrice5("5","2001-4000元"),
	routePrice6("6","4001-6000元"),
	routePrice7("7","6001-10000元"),
	routePrice8("8","10001元以上"),
	
	/*驴妈妈推荐*/
	
	sort1("2","价格从高到低"),
	sort2("3","价格从低到高"),
	sort3("27","好评度从高到低"),
	sort4("37","新品推荐"),
	sort5("21","游玩天数从高到低"),
	sort6("20","游玩天数从低到高"),
	sort7("42","开航日期由近到远"),
    sort8("15","距离由近到远"),
    sort9("33","价格从低到高"),
	sort10("34","价格从高到低"),
	sort11("18","价格从低到高"),
    sort12("19","价格从高到低");
    
    private String value;
    private String showName;

    private CommonStringType(String value, String showName) {
        this.value = value;
        this.showName = showName;
    }

    public String getShowName() {
        return showName;
    }

    public String getValue() {
        return value;
    }

    /*线路价格范围*/
    public static CommonStringType[] getRoutePrice() {
        CommonStringType[] routePriceArr = new CommonStringType[8];
        routePriceArr[0] = CommonStringType.routePrice1;
        routePriceArr[1] = CommonStringType.routePrice2;
        routePriceArr[2] = CommonStringType.routePrice3;
        routePriceArr[3] = CommonStringType.routePrice4;
        routePriceArr[4] = CommonStringType.routePrice5;
        routePriceArr[5] = CommonStringType.routePrice6;
        routePriceArr[6] = CommonStringType.routePrice7;
        routePriceArr[7] = CommonStringType.routePrice8;
        return routePriceArr;
    }
    
    /*酒店价格范围*/
    public static CommonStringType[] getHotelPrice() {
        CommonStringType[] routePriceArr = new CommonStringType[6];
        routePriceArr[0] = CommonStringType.hotelPrice1;
        routePriceArr[1] = CommonStringType.hotelPrice2;
        routePriceArr[2] = CommonStringType.hotelPrice3;
        routePriceArr[3] = CommonStringType.hotelPrice4;
        routePriceArr[4] = CommonStringType.hotelPrice5;
        routePriceArr[5] = CommonStringType.hotelPrice6;
        return routePriceArr;
    }
    
    
    /*酒店星级*/
    public static CommonStringType[] getHotelStar() {
        CommonStringType[] routePriceArr = new CommonStringType[5];
        routePriceArr[0] = CommonStringType.hotelStar1;
        routePriceArr[1] = CommonStringType.hotelStar2;
        routePriceArr[2] = CommonStringType.hotelStar3;
        routePriceArr[3] = CommonStringType.hotelStar4;
        routePriceArr[4] = CommonStringType.hotelStar5;
        return routePriceArr;
    }
    
    /*驴妈妈推荐*/
    public static CommonStringType[] getSortType() {
        CommonStringType[] sortTypeArr = new CommonStringType[12];
        sortTypeArr[0] = CommonStringType.sort1;
        sortTypeArr[1] = CommonStringType.sort2;
        sortTypeArr[2] = CommonStringType.sort3;
        sortTypeArr[3] = CommonStringType.sort4;
        sortTypeArr[4] = CommonStringType.sort5;
        sortTypeArr[5] = CommonStringType.sort6;
        sortTypeArr[6] = CommonStringType.sort7;
        sortTypeArr[7] = CommonStringType.sort8;
        sortTypeArr[8] = CommonStringType.sort9;
        sortTypeArr[9] = CommonStringType.sort10;
        sortTypeArr[10] = CommonStringType.sort11;
        sortTypeArr[11] = CommonStringType.sort12;
        return sortTypeArr;
    }

    /*搜索类型*/
    public static CommonStringType[] getSearchType() {
        CommonStringType[] statusTypeArr = new CommonStringType[5];
        statusTypeArr[0] = CommonStringType.CC;
        statusTypeArr[1] = CommonStringType.DI;
        statusTypeArr[2] = CommonStringType.SBH;
        statusTypeArr[3] = CommonStringType.SH;
        statusTypeArr[4] = CommonStringType.OT;
        return statusTypeArr;
    }
    /*推送平台*/
    public static CommonStringType[] getPlatformType() {
        CommonStringType[] statusTypeArr = new CommonStringType[3];
        statusTypeArr[0] = CommonStringType.ALLS;
        statusTypeArr[1] = CommonStringType.IPHONE;
        statusTypeArr[2] = CommonStringType.ANDROID;
        return statusTypeArr;
    }

    /*推送渠道*/
    public static CommonStringType[] getPushChannelType() {
        CommonStringType[] statusTypeArr = new CommonStringType[4];
        statusTypeArr[0] = CommonStringType.ALLS;
        statusTypeArr[1] = CommonStringType.MIPUSH;
        statusTypeArr[2] = CommonStringType.GPUSH;
        statusTypeArr[3] = CommonStringType.HPUSH;
        return statusTypeArr;
    }

    /*推送类型*/
    public static CommonStringType[] getPushTypeType() {
        CommonStringType[] statusTypeArr = new CommonStringType[9];
        statusTypeArr[0] = CommonStringType.ALLS;
        statusTypeArr[1] = CommonStringType.ALL;
        statusTypeArr[2] = CommonStringType.PROVINCE;
        statusTypeArr[3] = CommonStringType.UDID;
        statusTypeArr[4] = CommonStringType.DEVICE_TOKEN;
        statusTypeArr[5] = CommonStringType.BATCH_MEMBER;
        statusTypeArr[6] = CommonStringType.ACCURATE;
        statusTypeArr[7] = CommonStringType.TICKET_TRAVLE;
        statusTypeArr[8] = CommonStringType.TICKET_COMMENT_TYPE;
        return statusTypeArr;
    }

    /*推送类别*/
    public static CommonStringType[] getPushCategoryType() {
        CommonStringType[] statusTypeArr = new CommonStringType[13];
        statusTypeArr[0] = CommonStringType.ALLS;
        statusTypeArr[1] = CommonStringType.NORMAL;
        statusTypeArr[2] = CommonStringType.PAY_ORDER;
        statusTypeArr[3] = CommonStringType.ACCURATE_ORDER;
        statusTypeArr[4] = CommonStringType.ACCURATE_DETAIL;
        statusTypeArr[5] = CommonStringType.COUPON;
        statusTypeArr[6] = CommonStringType.TICKET_TRAVEL;
        statusTypeArr[7] = CommonStringType.TICKET_COMMENT;
        statusTypeArr[8] = CommonStringType.CHANGED;
        statusTypeArr[9] = CommonStringType.TRAVEL_ASST;
        statusTypeArr[10] = CommonStringType.MEMBER_MODEL;
        statusTypeArr[11] = CommonStringType.ASSOCITAION;
        statusTypeArr[12] = CommonStringType.PERSONALISE;
        return statusTypeArr;
    }

    /**
     * Description:推荐统计平台筛选
     * Date:2017/2/24 15:54
     * Created by wxxuyuan
     */
    public static CommonStringType[] getRecommendPlatforms(){
        CommonStringType[] statusTypeArr = new CommonStringType[4];
        statusTypeArr[0] = CommonStringType.ALLS;
        statusTypeArr[1] = CommonStringType.IPHONE;
        statusTypeArr[2] = CommonStringType.ANDROID;
        statusTypeArr[3] = CommonStringType.WAP;
        return statusTypeArr;
    }

    /**
     * Description:推荐统计页面目录筛选
     * Date:2017/2/24 19:42
     * Created by wxxuyuan
     */
    public static CommonStringType[] getRecommendPages(){
        CommonStringType[] statusTypeArr = new CommonStringType[6];
        statusTypeArr[0] = CommonStringType.ALLS;
        statusTypeArr[1] = CommonStringType.APP_INDEX;
        statusTypeArr[2] = CommonStringType.THEME_INDEX;
        statusTypeArr[3] = CommonStringType.ASSOCIATE;
        statusTypeArr[4] = CommonStringType.PRODUCT_DETAIL;
        statusTypeArr[5] = CommonStringType.PAY_SUCCESS;
        return statusTypeArr;
    }

    /**
     * Description:推荐统计板块筛选
     * Date:2017/2/25 11:33
     * Created by wxxuyuan
     */
    public static CommonStringType[] getRecommendBoards() {
        CommonStringType[] statusTypeArr = new CommonStringType[3];
        statusTypeArr[0] = CommonStringType.ALLS;
        statusTypeArr[1] = CommonStringType.GUESS_YOUR_THEME;
        statusTypeArr[2] = CommonStringType.BUY_TOGETHER;
        return statusTypeArr;
    }

    /*PV、UV渠道*/
    public static CommonStringType[] getFirstChannelType() {
        CommonStringType[] statusTypeArr = new CommonStringType[3];
        statusTypeArr[0] = CommonStringType.ALLS;
        statusTypeArr[1] = CommonStringType.APP;
        statusTypeArr[2] = CommonStringType.WAP;
        return statusTypeArr;
    }

    /*在线状态*/
    public static CommonStringType[] getOffOnType() {
        CommonStringType[] statusTypeArr = new CommonStringType[3];
        statusTypeArr[0] = CommonStringType.ALLS;
        statusTypeArr[1] = CommonStringType.ON;
        statusTypeArr[2] = CommonStringType.OFF;
        return statusTypeArr;
    }

    /**
     * h5页面监控pageCode
     *
     * @return
     */
    public static CommonStringType[] getH5PageCodeType() {
        CommonStringType[] statusTypeArr = new CommonStringType[9];
        statusTypeArr[0] = CommonStringType.ALLS;
        statusTypeArr[1] = CommonStringType.RESORT_HOTEL;
        statusTypeArr[2] = CommonStringType.AIR_TICKETS;
        statusTypeArr[3] = CommonStringType.TRAIN_TICKET;
        statusTypeArr[4] = CommonStringType.TICKETS;
        statusTypeArr[5] = CommonStringType.M_STANDING_FRONT_PAGE;
        statusTypeArr[6] = CommonStringType.TRAVEL_AROUND;
        statusTypeArr[7] = CommonStringType.DOMESTIC_TRAVEL;
        statusTypeArr[8] = CommonStringType.OUTBOUND_TRAVEL;
        return statusTypeArr;
    }

    /**
     * 运营商
     *
     * @return
     */
    public static CommonStringType[] getOperatorsType() {
        CommonStringType[] statusTypeArr = new CommonStringType[5];
        statusTypeArr[0] = CommonStringType.ALLS;
        statusTypeArr[1] = CommonStringType.CM;
        statusTypeArr[2] = CommonStringType.CU;
        statusTypeArr[3] = CommonStringType.CT;
        statusTypeArr[4] = CommonStringType.NONE1;
        return statusTypeArr;
    }

    /**
     * 根据运营商的value获得其名称
     *
     * @param value
     * @return
     */
    public static String getOperatorsShowNameByValue(String value) {
        String showName = "";
        if (value != null) {
            CommonStringType[] operatorsTypes = CommonStringType.getOperatorsType();
            for (CommonStringType operatorsType : operatorsTypes) {
                if (operatorsType.getValue().equals(value)) {
                    showName = operatorsType.getShowName();
                    break;
                }
            }
        }
        return showName;
    }

    /**
     * 网络类型
     *
     * @return
     */
    public static CommonStringType[] getNetworkType() {
        CommonStringType[] statusTypeArr = new CommonStringType[6];
        statusTypeArr[0] = CommonStringType.ALLS;
        statusTypeArr[1] = CommonStringType.TWO_G;
        statusTypeArr[2] = CommonStringType.THREE_G;
        statusTypeArr[3] = CommonStringType.FOUR_G;
        statusTypeArr[4] = CommonStringType.WIFI;
        statusTypeArr[5] = CommonStringType.NONE2;
        return statusTypeArr;
    }

    /**
     * 根据网络类型的value获得其名称
     *
     * @param value
     * @return
     */
    public static String getNetworkTypeShowNameByValue(String value) {
        String showName = "";
        if (value != null) {
            CommonStringType[] operatorsTypes = CommonStringType.getNetworkType();
            for (CommonStringType operatorsType : operatorsTypes) {
                if (operatorsType.getValue().equals(value)) {
                    showName = operatorsType.getShowName();
                    break;
                }
            }
        }
        return showName;
    }

    /**
     * 请求方式
     *
     * @return
     */
    public static CommonStringType[] getMethod() {
        CommonStringType[] statusTypeArr = new CommonStringType[7];
        statusTypeArr[0] = CommonStringType.ALLS;
        statusTypeArr[1] = CommonStringType.POST;
        statusTypeArr[2] = CommonStringType.GET;
        statusTypeArr[3] = CommonStringType.PATCH;
        statusTypeArr[4] = CommonStringType.PUT;
        statusTypeArr[5] = CommonStringType.DELETE;
        statusTypeArr[6] = CommonStringType.OTHER;
        return statusTypeArr;
    }

    /**
     * 版本渠道
     */
    public static CommonStringType[] getIsLvType(){
        CommonStringType[] statusTypeArr = new CommonStringType[5];
        statusTypeArr[0] = CommonStringType.ALLS;
        statusTypeArr[1] = CommonStringType.H5;
        statusTypeArr[2] = CommonStringType.IOS;
        statusTypeArr[3] = CommonStringType.Android;
        statusTypeArr[4] = CommonStringType.NONE3;
        return statusTypeArr;
    }
    
    /**
     * 根据请求方式的showName获得其value
     *
     * @param showName
     * @return
     */
    public static String getMethodValueByShowName(String showName) {
        String value = "";
        if (showName != null) {
            CommonStringType[] operatorsTypes = CommonStringType.getMethod();
            for (CommonStringType operatorsType : operatorsTypes) {
                if (operatorsType.getShowName().equals(showName)) {
                    value = operatorsType.getValue();
                    break;
                }
            }
        }
        return value;
    }

    /**
     * 根据请求方式的value获得其名称
     *
     * @param value
     * @return
     */
    public static String getMethodShowNameByValue(String value) {
        String showName = "";
        if (value != null) {
            CommonStringType[] operatorsTypes = CommonStringType.getMethod();
            for (CommonStringType operatorsType : operatorsTypes) {
                if (operatorsType.getValue().equals(value)) {
                    showName = operatorsType.getShowName();
                    break;
                }
            }
        }
        return showName;
    }

    /**
     * 请求异常
     *
     * @return
     */
    public static CommonStringType[] getException() {
        CommonStringType[] statusTypeArr = new CommonStringType[3];
        statusTypeArr[0] = CommonStringType.ALLS;
        statusTypeArr[1] = CommonStringType.INTERFACE_EXCEPTION;
        statusTypeArr[2] = CommonStringType.HTTP_EXCEPTION;
        return statusTypeArr;
    }

    /**
     * 根据异常类型的value获得其名称
     *
     * @param value
     * @return
     */
    public static String getExceptionShowNameByValue(String value) {
        String showName = "";
        if (value != null) {
            CommonStringType[] operatorsTypes = CommonStringType.getException();
            for (CommonStringType operatorsType : operatorsTypes) {
                if (operatorsType.getValue().equals(value)) {
                    showName = operatorsType.getShowName();
                    break;
                }
            }
        }
        return showName;
    }

    /**
     * 根据异常类型的showName获得其value
     *
     * @param showName
     * @return
     */
    public static String getExceptionValueByShowName(String showName) {
        String value = "";
        if (showName != null) {
            CommonStringType[] operatorsTypes = CommonStringType.getException();
            for (CommonStringType operatorsType : operatorsTypes) {
                if (operatorsType.getShowName().equals(showName)) {
                    value = operatorsType.getValue();
                    break;
                }
            }
        }
        return value;
    }
    
    /**
     * 接口异常
     */
    public static CommonStringType[] getInterfaceException(){
        CommonStringType[] statusTypeArr = new CommonStringType[9];
        statusTypeArr[0] = CommonStringType.ALLS;
        statusTypeArr[1] = CommonStringType.NEGATIVE_1;
        statusTypeArr[2] = CommonStringType.NEGATIVE_2;
        statusTypeArr[3] = CommonStringType.NEGATIVE_3;
        statusTypeArr[4] = CommonStringType.NEGATIVE_5;
        statusTypeArr[5] = CommonStringType.NEGATIVE_7;
        statusTypeArr[6] = CommonStringType.NEGATIVE_101;
        statusTypeArr[7] = CommonStringType.POSITIVE_2;
        statusTypeArr[8] = CommonStringType.POSITIVE_3;
        return statusTypeArr;
    }
    
    /**
     * 根据接口异常的value获得其名称
     *
     * @param value
     * @return
     */
    public static String getInterfaceExceptionShowNameByValue(String value) {
        String showName = "";
        if (value != null) {
            CommonStringType[] operatorsTypes = CommonStringType.getInterfaceException();
            for (CommonStringType operatorsType : operatorsTypes) {
                if (operatorsType.getValue().equals(value)) {
                    showName = operatorsType.getShowName();
                    break;
                }
            }
        }
        return showName;
    }
    
    /**
     * 根据接口异常的showName获得其value
     *
     * @param showName
     * @return
     */
    public static String getInterfaceExceptionValueByShowName(String showName) {
        String value = "";
        if (showName != null) {
            CommonStringType[] operatorsTypes = CommonStringType.getInterfaceException();
            for (CommonStringType operatorsType : operatorsTypes) {
                if (operatorsType.getShowName().equals(showName)) {
                    value = operatorsType.getValue();
                    break;
                }
            }
        }
        return value;
    }
    
 
    /** 
    * @Title: getKeyNameByValue 
    * @Description: 根据搜索类型值获取对应中文名称
    * @param @param value
    * @param @return    设定文件 
    * @return String    返回类型 
    * @throws 
    */
    public static String getKeyNameByValue(String value) {
        String showName = "其他";
        if (value != null) {
            CommonStringType[] keyTypes = CommonStringType.getSearchType();
            for (CommonStringType keyType : keyTypes) {
                if (keyType.getValue().equals(value)) {
                	showName = keyType.getShowName();
                    break;
                }
            }
        }
        return showName;
    }
    
    
    /*sort*/
    public static String getSortNameByValue(String value) {
        String showName = "";
        CommonStringType[] typeArr = getSortType();
        if (value != null) {
            for (CommonStringType type : typeArr) {
                if (type.getValue().equals(value)) {
                    showName = type.getShowName();
                    break;
                }
            }
        }
        return showName;
    }
    
    /*routePrice*/
    public static String getRoutePriceNameByValue(String value) {
        String showName = "";
        CommonStringType[] typeArr = getRoutePrice();
        if (value != null) {
            for (CommonStringType type : typeArr) {
                if (type.getValue().equals(value)) {
                    showName = type.getShowName();
                    break;
                }
            }
        }
        return showName;
    }
    
    
    /*hotelPrice*/
    public static String getHotelPriceNameByValue(String value) {
        String showName = "";
        CommonStringType[] typeArr = getHotelPrice();
        if (value != null) {
            for (CommonStringType type : typeArr) {
                if (type.getValue().equals(value)) {
                    showName = type.getShowName();
                    break;
                }
            }
        }
        return showName;
    }
    
    
    /*HotelStar*/
    public static String getHotelStarNameByValue(String value) {
        String showName = "";
        CommonStringType[] typeArr = getHotelStar();
        if (value != null) {
            for (CommonStringType type : typeArr) {
                if (type.getValue().equals(value)) {
                    showName = type.getShowName();
                    break;
                }
            }
        }
        return showName;
    }
}
